package com.xrc.HomeWork.Student;

public class Parent {
    private String name;
    private  Integer age;

    public Parent() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void eat(String foot){
        System.out.println("俺爱吃"+foot);
    }
    public void work(){
        System.out.println("姓名："+getName()+"\n年龄："+getAge());
    }

}
